<script setup lang="ts">
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
let id = ''
onMounted(() => {
  id = route.query.id as string
})
console.log('路由获取参数值', route.query.id)
</script>

<template>
  <div class="test-page">test路由测试文件</div>
</template>

<style lang="scss" scoped></style>
